package com.hrbxlh.pojo;

import java.math.BigDecimal;

/**
 * Created by Administrator on 2018/4/23.
 */
public class TaskLibrary implements Cloneable {

    private int tasklibraryId;

    private int tasklibrary_id;

    private String tasklibrary_name;

    private String tasklibrary_answer;

    private int tasklibrary_type;

    private String tasklibrary_typeName;

    private String tasklibrary_optionMsg;

    private String tasklibrary_knowpoint;

    private BigDecimal tasklibrary_source;

    private int chapterId;

    private int courseId;

    public String getTasklibrary_typeName() {
        return tasklibrary_typeName;
    }

    public void setTasklibrary_typeName(String tasklibrary_typeName) {
        this.tasklibrary_typeName = tasklibrary_typeName;
    }

    public int getCourseId() {
        return courseId;
    }

    public void setCourseId(int courseId) {
        this.courseId = courseId;
    }

    public int getTasklibrary_id() {
        return tasklibrary_id;
    }

    public void setTasklibrary_id(int tasklibrary_id) {
        this.tasklibrary_id = tasklibrary_id;
    }

    public String getTasklibrary_name() {
        return tasklibrary_name;
    }

    public void setTasklibrary_name(String tasklibrary_name) {
        this.tasklibrary_name = tasklibrary_name;
    }

    public String getTasklibrary_answer() {
        return tasklibrary_answer;
    }

    public void setTasklibrary_answer(String tasklibrary_answer) {
        this.tasklibrary_answer = tasklibrary_answer;
    }

    public int getTasklibrary_type() {
        return tasklibrary_type;
    }

    public void setTasklibrary_type(int tasklibrary_type) {
        this.tasklibrary_type = tasklibrary_type;
    }

    public String getTasklibrary_optionMsg() {
        return tasklibrary_optionMsg;
    }

    public void setTasklibrary_optionMsg(String tasklibrary_optionMsg) {
        this.tasklibrary_optionMsg = tasklibrary_optionMsg;
    }

    public String getTasklibrary_knowpoint() {
        return tasklibrary_knowpoint;
    }

    public void setTasklibrary_knowpoint(String tasklibrary_knowpoint) {
        this.tasklibrary_knowpoint = tasklibrary_knowpoint;
    }

    public BigDecimal getTasklibrary_source() {
        return tasklibrary_source;
    }

    public void setTasklibrary_source(BigDecimal tasklibrary_source) {
        this.tasklibrary_source = tasklibrary_source;
    }

    public int getChapterId() {
        return chapterId;
    }

    public void setChapterId(int chapterId) {
        this.chapterId = chapterId;
    }

    public int getTasklibraryId() {
        return tasklibraryId;
    }

    public void setTasklibraryId(int tasklibraryId) {
        this.tasklibraryId = tasklibraryId;
    }

    @Override
    public String toString() {
        return "TaskLibrary{" +
                "tasklibrary_id=" + tasklibrary_id +
                ", tasklibrary_name='" + tasklibrary_name + '\'' +
                ", tasklibrary_answer='" + tasklibrary_answer + '\'' +
                ", tasklibrary_type=" + tasklibrary_type +
                ", tasklibrary_optionMsg='" + tasklibrary_optionMsg + '\'' +
                ", tasklibrary_knowpoint='" + tasklibrary_knowpoint + '\'' +
                ", tasklibrary_source=" + tasklibrary_source +
                ", chapterId=" + chapterId +
                '}';
    }

    @Override
    public boolean equals(Object obj)
    {
        if (obj == null)
        {
            return false;
        }

        return tasklibrary_knowpoint == null ? false : (this.tasklibrary_knowpoint.equals(((TaskLibrary) obj).getTasklibrary_knowpoint())
                &&this.courseId==((TaskLibrary) obj).getCourseId());
    }

    @Override
    public TaskLibrary clone() {
        TaskLibrary clone = null;
        try{
            clone = (TaskLibrary) super.clone();

        }catch(CloneNotSupportedException e){
            throw new RuntimeException(e);  // won't happen
        }

        return clone;
    }
}
